package com.example.demo.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.SysUser;
import com.example.demo.entity.TargetAndBackMonkey2;
import com.example.demo.entity.TargetAndBackMonkeyPeople;
import com.example.demo.entity.TargetAndBackMonkeyPeople2;
import com.example.demo.entity.TargetAndBackMonkeyPeopleDate;
import com.example.demo.repository.TargetAndBackMonkeyPeopleRepository;

@Service
public class TargetAndBackMonkeyPeopleService extends BaseService<TargetAndBackMonkeyPeople, Integer>{

	@Autowired
	private  TargetAndBackMonkeyPeopleRepository aaDao;
	
	public List<TargetAndBackMonkeyPeople> findByUser1(TargetAndBackMonkeyPeople2 sale1) {
		
		return aaDao.findByUser1(sale1);
	}

	public List<TargetAndBackMonkeyPeople> findByUser1Id(Integer userId) {
		// TODO Auto-generated method stub
		return aaDao.findByUser1Id(userId);
	}

	public TargetAndBackMonkeyPeople findByUser1Id2(Integer id) {
		// TODO Auto-generated method stub
		return aaDao.findByUser1Id2(id);
	}





}
